/**
 *  JFTSTool - Java Full Text Search tool.
 *  Copyright (C) <2009>  <grupo JFTS>
 *  This program is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.jftstool.fileParserFramework;

import java.io.InputStream;

import org.jftstool.fileParserFramework.exceptions.DocumentHandlerException;
import org.jftstool.fileParserFramework.metadata.DocumentMetaData;
import org.xml.sax.ContentHandler;

/**
 * @author grupo JFTS
 *
 */
public interface IDocumentHandler {
	
	/**
	 * Method to be called at the time of extracting the contents and metadata of a document.
	 * @param is InputStream que representa al documento
	 * @param resultHandler Object that stores the text extracted from the document.
	 * @param metaData Object that stores metadata extracted from the document.	 
	 * @throws DocumentHandlerException
	 */
	public void getDocument(InputStream is, ContentHandler resultHandler, DocumentMetaData metaData) throws DocumentHandlerException;

}
